import java.util.Scanner;

class Book {
    private int bid;
    private String name;
    private float price;

//    public Book(int bid, String name, float price) {
//        this.bid = bid;
//        this.name = name;
//        this.price = price;
//    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }

    public void sell() {
        System.out.println(this.name+"书被买完了");
    }

    private void sell(float price, String person) {
        System.out.println(this.name + "卖给了" + person + ",卖了" + price + "元");
    }


}

public class all {
    public static void main(String[] args) {
        Book is = new Book();
//        Scanner s1= new Scanner(System.in);

    }
}


